-- GENERATED SPELL FOR [Arena Spectator] --


function spell0_8916(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(9128,pUnit)
pUnit:RegisterEvent('Sorts_8916', 647, 1)
end

function spell1_8916(pUnit, Event) --@Curse of Tongues,n/a--
pUnit:FullCastSpellOnTarget(13338,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8916', 15265, 1)
end

function spell2_8916(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_8916', 30255, 1)
end

function spell3_8916(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8916', 5335, 1)
end

function spell4_8916(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8916', 3000, 1)
end

function spell5_8916(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_8916', 3500, 1)
end

function spell6_8916(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8916', 3000, 1)
end

function spell7_8916(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8916', 578, 1)
end

function spell8_8916(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13446,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8916', 614, 1)
end

function Sorts_8916(pUnit, Event)
local choix_sorts_8916 = math.random(0, 8)
if choix_sorts_8916 == 0 then
pUnit:RegisterEvent('spell0_8916', 1, 1)
end
if choix_sorts_8916 == 1 then
pUnit:RegisterEvent('spell1_8916', 1, 1)
end
if choix_sorts_8916 == 2 then
pUnit:RegisterEvent('spell2_8916', 1, 1)
end
if choix_sorts_8916 == 3 then
pUnit:RegisterEvent('spell3_8916', 1, 1)
end
if choix_sorts_8916 == 4 then
pUnit:RegisterEvent('spell4_8916', 1, 1)
end
if choix_sorts_8916 == 5 then
pUnit:RegisterEvent('spell5_8916', 1, 1)
end
if choix_sorts_8916 == 6 then
pUnit:RegisterEvent('spell6_8916', 1, 1)
end
if choix_sorts_8916 == 7 then
pUnit:RegisterEvent('spell7_8916', 1, 1)
end
if choix_sorts_8916 == 8 then
pUnit:RegisterEvent('spell8_8916', 1, 1)
end
end

function mob8916_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8916', math.random(1500, 3000), 1)
end

function mob8916_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8916_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8916_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8916, 1, 'mob8916_Action')
RegisterUnitEvent(8916, 2, 'mob8916_Leave')
RegisterUnitEvent(8916, 3, 'mob8916_Kill')
RegisterUnitEvent(8916, 4, 'mob8916_Die')
